package mill;

public enum MillType {

	Small,
	Medium,
	Large;	

	public static String[] enumsToStringArray() {  
		String[] results = new String[MillType.values().length];  
		int count = 0;  
		for (MillType each  : MillType.values()) {  
			results[count] = each.toString();  
			count++;  
		}  
		return results;  
	}  
	
	public static MillType getMillType(int index)
	{
		MillType temp = Small;
		switch (index) {
		case 0:
			temp = Small;
			break;
		case 1:
			temp = Medium;
			break;
		case 2:
			temp = Large;
			break;
		default:
			break;
		}
		
		return temp;
		
	}
}
